package com.cangxuan.app.entity;

import java.io.Serializable;
import java.time.LocalDateTime;

public class Order implements Serializable {
    private int id;
    private int buyerId;
    private int sellerId;
    private int goodsId;
    private float price;
    private int count;
    private float transAmount;
    private float free;
    private float actualReceipt;
    private LocalDateTime createTime;
    private LocalDateTime payedTime;
    private int stateId;
    private int registrationId;

    private String image;
    private String name;
    private String state;


    public Order() {
    }

    public Order(int id, int buyerId, int sellerId, int goodsId, float price, int count, float transAmount, float free, float actualReceipt, LocalDateTime createTime, LocalDateTime payedTime, int stateId, int registrationId, String image, String name, String state) {
        this.id = id;
        this.buyerId = buyerId;
        this.sellerId = sellerId;
        this.goodsId = goodsId;
        this.price = price;
        this.count = count;
        this.transAmount = transAmount;
        this.free = free;
        this.actualReceipt = actualReceipt;
        this.createTime = createTime;
        this.payedTime = payedTime;
        this.stateId = stateId;
        this.registrationId = registrationId;
        this.image = image;
        this.name = name;
        this.state = state;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getBuyerId() {
        return buyerId;
    }

    public void setBuyerId(int buyerId) {
        this.buyerId = buyerId;
    }

    public int getSellerId() {
        return sellerId;
    }

    public void setSellerId(int sellerId) {
        this.sellerId = sellerId;
    }

    public int getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(int goodsId) {
        this.goodsId = goodsId;
    }

    public float getPrice() {
        return price;
    }

    public void setPrice(float price) {
        this.price = price;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public LocalDateTime getPayedTime() {
        return payedTime;
    }

    public void setPayedTime(LocalDateTime payedTime) {
        this.payedTime = payedTime;
    }

    public int getStateId() {
        return stateId;
    }

    public void setStateId(int stateId) {
        this.stateId = stateId;
    }

    public int getRegistrationId() {
        return registrationId;
    }

    public void setRegistrationId(int registrationId) {
        this.registrationId = registrationId;
    }

    public float getTransAmount() {
        return transAmount;
    }

    public void setTransAmount(float transAmount) {
        this.transAmount = transAmount;
    }

    public float getFree() {
        return free;
    }

    public void setFree(float free) {
        this.free = free;
    }

    public float getActualReceipt() {
        return actualReceipt;
    }

    public void setActualReceipt(float actualReceipt) {
        this.actualReceipt = actualReceipt;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    @Override
    public String toString() {
        return "Order{" +
                "id=" + id +
                ", buyerId=" + buyerId +
                ", sellerId=" + sellerId +
                ", goodsId=" + goodsId +
                ", price=" + price +
                ", count=" + count +
                ", transAmount=" + transAmount +
                ", free=" + free +
                ", actualReceipt=" + actualReceipt +
                ", createTime=" + createTime +
                ", payedTime=" + payedTime +
                ", stateId=" + stateId +
                ", registrationId=" + registrationId +
                ", image='" + image + '\'' +
                ", name='" + name + '\'' +
                ", state='" + state + '\'' +
                '}';
    }
}
